package com.view.cn.mvprxjava.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.view.cn.mvprxjava.MainActivity;


public abstract class BaseFragment extends Fragment {

	public MainActivity mMainActivity;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);

		if (activity instanceof MainActivity) {
			mMainActivity = (MainActivity) activity;
		}
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public void onResume() {
		super.onResume();
	}

	@Override
	public void onDestroyView() {
		super.onDestroyView();
	}
}
